AddCSLuaFile("cl_init.lua") 
AddCSLuaFile("shared.lua") 
include('shared.lua')

local STATE_STOPPED = 0
local STATE_PAUSED = 2
local STATE_PLAYING = 1

function ENT:Initialize() 	

	self:SetModel(Model("models/Combine_Helicopter/helicopter_bomb01.mdl"))
	
	self.Entity:PhysicsInit(SOLID_VPHYSICS)
	self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
	self.Entity:SetSolid(SOLID_VPHYSICS)
	self.Entity:DrawShadow(false)
	self.Entity:SetCollisionGroup(COLLISION_GROUP_WORLD)

	local phys = self.Entity:GetPhysicsObject()
	if phys:IsValid() then
		phys:Sleep()
	end

	 self:SetNWInt("system_population", 100)
	self:SetNWFloat("param_life", 15.0)
	self:SetNWInt("system_show_origin", 1)
end

function ENT:Think()
	self.Entity:NextThink(CurTime() + 1)
end

function ENT:PhysicsUpdate(physobj)
	if not self.Entity:IsPlayerHolding() then
			physobj:EnableMotion(false)
		
	end
		
end

function ENT:BuildDupeInfo()
end

function ENT:ApplyDupeInfo(ply, ent, data, CreatedEntities)
end

function ENT.AfterPasteMods(ply, Ent, DupeInfo) -- Happens before PostEntityPaste for some reason <_<
end
duplicator.RegisterEntityModifier("CatmullRomCamsDupData", ENT.AfterPasteMods)
